home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CreatingGames / Utilities / Misc / GMS / GMSDev / EModules / dpkernel / dpkernel.e next >
Encoding:
Text File  |  1997-11-30  |  3.4 KB  |  106 lines

  1. /*
  2. **  $VER: dpkernel.e V0.9B
  3. **
  4. **  General include file for programs using the DPKernel.
  5. **
  6. **  (C) Copyright 1996-1997 DreamWorld Productions.
  7. **      All Rights Reserved
  8. */
  9.  
  10. OPT MODULE
  11. OPT EXPORT
  12. OPT PREPROCESS
  13.  
  14. MODULE 'system/register'
  15.  
  16. CONST DPKVersion  = 0,
  17.       DPKRevision = 9
  18.  
  19. CONST SKIPENTRY  = 0,
  20.       ENDLIST    = -1,
  21.       LISTEND    = -1,
  22.       TAGEND     = 0
  23.  
  24. CONST TAGS       = $54410001,
  25.       STARTLIST  = $4C490001,
  26.       LISTSTART  = $4C490001,
  27.       OBJECTLIST = $4F4C0001
  28.  
  29. CONST TAG_IGNORE = 1,
  30.       TAG_MORE   = 2,
  31.       TAG_SKIP   = 3
  32.  
  33. CONST TLONG    = $80000000,
  34.       TWORD    = $40000000,
  35.       TAPTR    = $C0000000,
  36.       TSTEPIN  = $10000000,
  37.       TSTEPOUT = $08000000,
  38.       TTRIGGER = $04000000
  39.  
  40. CONST JMP_DEFAULT = 0,
  41.       JMP_LVO     = 1,
  42.       JMP_AMIGAE  = 2
  43.  
  44. CONST GET_NOTRACK = $00010000
  45.  
  46. /***************************************************************************
  47. */
  48.  
  49. OBJECT head
  50.   id      :INT
  51.   version :INT
  52.   class   :LONG
  53.   stats   :LONG
  54. ENDOBJECT
  55.  
  56. /***************************************************************************
  57. ** Universal errorcodes returned by certain functions.
  58. */
  59.  
  60. ENUM  ERR_OK,          -> Function went OK.
  61.       ERR_NOMEM,       -> Not enough memory available 
  62.       ERR_NOPTR,       -> Required pointer not present 
  63.       ERR_INUSE,       -> Previous allocations have not been freed 
  64.       ERR_STRUCT,      -> Structure version not supported or not found. 
  65.       ERR_FAILED,      -> General failure 
  66.       ERR_FILE,        -> File error, eg file not found.
  67.       ERR_DATA,        -> There is an error in the given data.
  68.       ERR_SEARCH,      -> A search routine failed to make a match.
  69.       ERR_SCRTYPE,     -> Screen Type not recognised.
  70.       ERR_MODULE,      -> Trouble with initialising/using a module.
  71.       ERR_RASTCOMMAND, -> Invalid raster command detected.
  72.       ERR_RASTERLIST,  -> Complete rasterlist failure.
  73.       ERR_NORASTER,    -> Rasterlist missing from Screen->RasterList.
  74.       ERR_DISKFULL,    -> Disk full error.
  75.       ERR_FILEMISSING, -> File not found.
  76.       ERR_WRONGVER,    -> Wrong version or version not supported.
  77.       ERR_MONITOR,     -> Monitor driver not found or cannot be used.
  78.       ERR_UNPACK,      -> Problem with unpacking of data.
  79.       ERR_ARGS,        -> Invalid arguments passed to function.
  80.       ERR_NODATA,      -> No data is available for use.
  81.       ERR_READ,        -> Error reading data from file.
  82.       ERR_WRITE,       -> Error writing data to file.
  83.       ERR_LOCK,        -> Could not obtain lock on object.
  84.       ERR_EXAMINE,     /* Could not examine directory or file */
  85.       ERR_LOSTCLASS,   /* This object has lost its class reference */
  86.       ERR_NOACTION,    /* This object does not support the required action */
  87.       ERR_NOSUPPORT,   /* Object does not support the given data */
  88.       ERR_MEMORY       /* General memory error */
  89.  
  90. CONST ERR_SUCCESS = 0  -> Synonym for ERR_OK.
  91.  
  92. /***************************************************************************
  93. ** Memory types used by AllocMemBlock().  This is generally identical to the
  94. ** exec definitions but CHIP is renamed to VIDEO (displayable memory) and
  95. ** there is an addition of BLIT and SOUND specific memory.
  96. */
  97.  
  98. CONST MEM_DATA      = $00000000,
  99.       MEM_PRIVATE   = $00000001,
  100.       MEM_VIDEO     = $00000002,
  101.       MEM_BLIT      = $00000004,
  102.       MEM_SOUND     = $00000008,
  103.       MEM_CODE      = $00000010,
  104.       MEM_UNTRACKED = $80000000
  105.  
  106.